package com.ruoyi.developer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.developer.mapper.TDeveloperMapper;
import com.ruoyi.developer.domain.TDeveloper;
import com.ruoyi.developer.service.ITDeveloperService;

/**
 * 开发商列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-10
 */
@Service
public class TDeveloperServiceImpl implements ITDeveloperService 
{
    @Autowired
    private TDeveloperMapper tDeveloperMapper;

    /**
     * 查询开发商列表
     * 
     * @param developerId 开发商列表主键
     * @return 开发商列表
     */
    @Override
    public TDeveloper selectTDeveloperByDeveloperId(Long developerId)
    {
        return tDeveloperMapper.selectTDeveloperByDeveloperId(developerId);
    }

    /**
     * 查询开发商列表列表
     * 
     * @param tDeveloper 开发商列表
     * @return 开发商列表
     */
    @Override
    public List<TDeveloper> selectTDeveloperList(TDeveloper tDeveloper)
    {
        return tDeveloperMapper.selectTDeveloperList(tDeveloper);
    }

    /**
     * 新增开发商列表
     * 
     * @param tDeveloper 开发商列表
     * @return 结果
     */
    @Override
    public int insertTDeveloper(TDeveloper tDeveloper)
    {
        return tDeveloperMapper.insertTDeveloper(tDeveloper);
    }

    /**
     * 修改开发商列表
     * 
     * @param tDeveloper 开发商列表
     * @return 结果
     */
    @Override
    public int updateTDeveloper(TDeveloper tDeveloper)
    {
        return tDeveloperMapper.updateTDeveloper(tDeveloper);
    }

    /**
     * 批量删除开发商列表
     * 
     * @param developerIds 需要删除的开发商列表主键
     * @return 结果
     */
    @Override
    public int deleteTDeveloperByDeveloperIds(Long[] developerIds)
    {
        return tDeveloperMapper.deleteTDeveloperByDeveloperIds(developerIds);
    }

    /**
     * 删除开发商列表信息
     * 
     * @param developerId 开发商列表主键
     * @return 结果
     */
    @Override
    public int deleteTDeveloperByDeveloperId(Long developerId)
    {
        return tDeveloperMapper.deleteTDeveloperByDeveloperId(developerId);
    }
}
